    //package com.xinwei.springboot.configuration;
    //
    //import org.springframework.boot.web.server.ErrorPage;
    //import org.springframework.boot.web.server.WebServerFactoryCustomizer;
    //import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory;
    //import org.springframework.context.annotation.Bean;
    //import org.springframework.context.annotation.Configuration;
    //import org.springframework.http.HttpStatus;
    //
    //@Configuration
    //public class HistoryModeConfiguration {
    //
    //    @Bean
    //    public WebServerFactoryCustomizer<ConfigurableServletWebServerFactory> webServerFactoryCustomizer(){
    //        return container -> {
    //            ErrorPage error404Page = new ErrorPage(HttpStatus.NOT_FOUND, "/admin");
    //            container.addErrorPages(error404Page);
    //        };
    //    }
    //}
